<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script>
        console.log("hello world")
        const app = document.getElementById('app')
        const h1 = document.createElement('h1')
        const textNode = document.createTextNode('hello world')
        h1.appendChild(textNode)
        app.appendChild(h1)
    </script>
</body>
</html>